package com.hlcl.huaji.ctrl.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.elcl.adapter.AbViewHolder;
import com.elcl.adapter.BaseLVAdapter;
import com.elcl.storage.ApplicationCache;
import com.elcl.support.userage.domain.BaseSimpleItem;
import com.hlcl.huaji.R;

import java.util.List;

/**
 * Created by lichunlin on 2018/5/23.
 * 个人中心-订单类型
 */

public class PicShowAdapter extends BaseLVAdapter<String> {

    public PicShowAdapter(List<String> list, int idLayout) {
        super(list, idLayout);
    }

    @Override
    public View getItemView(int position, View convertView, ViewGroup parent) {
        ImageView img_pic_show = (ImageView) AbViewHolder.getView(convertView, R.id.img_pic_show);

        String pic = list.get(position);
        if (null != pic) {
            Glide.with(ApplicationCache.context).load(pic).into(img_pic_show);
        }
        return convertView;
    }
}
